<template>
<el-upload
  class="upload-demo"
  drag
  action="/uppics"
  accept=".jpg,.jpeg,.png"
  :on-success="success"
  :show-file-list="false"
  :data="{id:id,ver:ver,name:name,feature:feature}"
  multiple>
  <i class="el-icon-upload"></i>
  <div class="el-upload__text">将文件拖到此处，或<em>点击上传</em></div>
</el-upload>
</template>

<script>
 module.exports ={
   data(){
     return {
     }
   },
   props:[
     "id","name","ver","feature"
   ],
   methods:{
     success:function(){
       this.$emit("uploaded",this.id);
     }
   }
 }